/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/cat.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __D90E9C5D_A3B8_40B6_B97B_4DF531DEAE71__
#define __D90E9C5D_A3B8_40B6_B97B_4DF531DEAE71__

namespace http
{
    class i_task : public xos::i_release
    {
    protected:
        virtual ~i_task(){}

    public:
        virtual int set_connect( i_connect * pConnect ) = 0;
        virtual i_connect * get_connect() = 0;

        virtual i_response * http_response() = 0;
        virtual i_request * http_request() = 0;

        virtual const char * super_variable( const char * lpszName ) = 0;
        virtual xos_box::i_str_property * values() = 0;
        virtual xos_box::i_str_property * prop() = 0;

        // 异步调用
        virtual int call( const char * lpszUri ) = 0;

    };

} // http

#endif // __D90E9C5D_A3B8_40B6_B97B_4DF531DEAE71__
